def char_hash(c) -> int:
	return JClass('java.lang.Character')(c).hashCode()

def transition(self,c,b) -> int:
	"""
	State Transition
		@param	c: Character
		@param	b: Init_State
	@return:	transite State, -1 == Transition False
	"""

	p = self.base[b] + self.char_hash(c) + 1

	if check[p] == b:
		return p
	else:
		return -1
